package com.billbaijie.dao.impl;

import java.util.List;
import java.util.Map;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.billbaijie.dao.AutUserDao;
import com.billbaijie.model.AutUserInfo;

@Repository
public class AutUserDaoImpl implements AutUserDao {

	@Autowired
	private SqlSessionTemplate sqlSessionTemplate;
	
	public SqlSessionTemplate getSqlSessionTemplate() {
		return sqlSessionTemplate;
	}

	public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
		this.sqlSessionTemplate = sqlSessionTemplate;
	}

	@Override
	public int countAutUsers() {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.getMapper(AutUserDao.class).countAutUsers();
	}

	@Override
	public List<AutUserInfo> findAll(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.getMapper(AutUserDao.class).findAll(map);
	}

	@Override
	public int addAutUsers(AutUserInfo u) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateAutUsers(AutUserInfo u) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAutUsers(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

}
